package bean

type User struct {
	Id int64 `json:"id" db:"id"`
	Name string `json:"name" db:"name"`
	Phone string `json:"phone" db:"phone"`
	Sex int `json:"sex" db:"sex"`
	IdNumber int64 `json:"id_number" db:"id_number"`
	Avatar *string `json:"avatar" db:"avatar"`
	Status int `json:"status" db:"status"`
}

// TableName 解决gorm表明映射
func (User) TableName() string {
	return "user"
}
